include $(top_srcdir)/src/common.mk

AUTOMAKE_OPTIONS = gnu

EXTRA_DIST =            packets/packet01.pcap \
                        packets/packet02.pcap \
                        packets/packet03.pcap \
                        packets/packet04.pcap \
                        packets/packet05.pcap \
                        packets/packet06.pcap \
                        packets/packet07.pcap \
                        packets/packet08.pcap \
                        packets/packet09.pcap \
                        packets/packet10.pcap \
                        packets/packet11.pcap \
                        packets/packet12.pcap 

noinst_HEADERS =	MQTTProtocol.h test_mqtt.h MQTTInfo.h

TEST = test_mqtt

check_PROGRAMS = test_mqtt

test_mqtt_SOURCES = 	../../Multiplexer.cc ../../ElapsedTime.cc \
			../../Packet.cc \
			../../IPAddress.cc \
			../../Protocol.cc \
			../../Logger.cc \
			../../FlowForwarder.cc \
			../../AnomalyManager.cc \
			../../StringCache.cc ../../StringMap.cc \
			../../protocols/ethernet/EthernetProtocol.cc \
			../../protocols/ip/IPProtocol.cc \
			../../ipset/IPSetManager.cc \
			../../ipset/IPSet.cc \
			../../ipset/IPBloomSet.cc \
			../../ipset/IPRadixTree.cc \
			../tcp/TCPProtocol.cc \
                       	$(TEST_FLOW_OBJECTS) \
			../../Flow.cc \
			../../flow/FlowTable.cc \
			../../flow/FlowManager.cc \
			../../names/DomainNameManager.cc \
			../../names/DomainNode.cc \
			../../names/DomainName.cc \
			MQTTProtocol.cc test_mqtt.cc

test_mqtt_CPPFLAGS = $(EXTRA_TEST_CPPFLAGS) -I../.. $(BOOST_CPPFLAGS) -DSTAND_ALONE_TEST
test_mqtt_LDFLAGS = $(EXTRA_TEST_LDFLAGS) 
test_mqtt_LDADD   = $(BOOST_LDFLAGS) $(LOGGING_FLAGS) -lpthread -lboost_system -lboost_unit_test_framework

CLEANFILES = *.o *.lo *.so

MAINTAINERCLEANFILES = \
        $(srcdir)/Makefile \
        $(srcdir)/Makefile.in \
        `rm -rf $(srcdir)/build `

